package com.ydd.vo;


import com.ydd.vo.common.AllCate;
import com.ydd.vo.common.UserTotal;
import com.ydd.dto.ArticleDTO;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;

/**
 * Description TODO
 * Author itheima
 * Date 2023-05-2023/5/29 11:05
 */
@Data
@Builder
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "GET 主页统计信息数据响应对象",description = "null响应传输对象")
public class IndexBaseInfoVO implements Serializable {


    @ApiModelProperty("所有分类数据")
    private List<AllCate> all_cate = new ArrayList<>();


    @ApiModelProperty("广告位总数")
    private Integer advpos_num;

    @ApiModelProperty("标签总数")
    private Integer  tag_num;

    @ApiModelProperty("管理员总数")
    private Integer admin_num;

    @ApiModelProperty("所有分类数据")
    private Integer  article_num;

    @ApiModelProperty("分类总数")
    private Integer cate_num;

    @ApiModelProperty("广告图总数")
    private Integer advimg_num;

    /**
     * 所需属性在YddUser中都有
     */
    @ApiModelProperty("最新用户数据")
    private List<UserVO> new_user =new ArrayList<>();

    /**
     * 所需属性在YddArticle中都有
     */
    @ApiModelProperty("热门文章数据")
    private List<ArticleVO> hot_article=new ArrayList<>();


    @ApiModelProperty("用户数据")
    private UserTotal user;

}
